﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;

namespace Kunlun.Models {
	 [Table("FavourableCode")]
	public class FavourableCode {
		[Key]
		[DisplayName("主键ID")]
		public int ID {
			get;
			set;
		}

		[DisplayName("卡号")]
		[Required(ErrorMessage = "卡号不能为空！")]  
		public string F_Code {
			get;
			set;
		}

		[DisplayName("密码")]
		[Required(ErrorMessage = "密码不能为空！")]  
		public string Password {
			get;
			set;
		}

		[DisplayName("用户ID")]
		public int Uid {
			get;
			set;
		}

		[DisplayName("订单ID")]
		public string Oid {
			get;
			set;
		}

		[DisplayName("面值")]
		public decimal Price1 {
			get;
			set;
		}

		[DisplayName("备用金额")]
		public double price2 {
			get;
			set;
		}

		[DisplayName("充值时间")]
		public DateTime BeginDate {
			get;
			set;
		}

		[DisplayName("使用开始时间")]
		public DateTime UseBeginDate {
			get;
			set;
		}

		[DisplayName("使用截止时间")]
		public DateTime UseBeginEnd {
			get;
			set;
		}

		[DisplayName("是否在使用")]
		public bool IsUsed {
			get;
			set;
		}

		[DisplayName("描述信息")]
		public string Description {
			get;
			set;
		}

		public DateTime LastUpdateTime {
			get;
			set;
		}
	}
}
